package com.mp.pojo.Query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author jack
 * @data 2019-08-09 14:00
 */
@Data
@ApiModel(value = "用户分页查询对象")
public class UserinfoSearchQuery {

    @ApiModelProperty(value = "用户昵称", example = "jack")
    private String userName;

    @ApiModelProperty(value = "开始时间", example = "2019-08-19 23:59:59")
    private String startTimeStr;


    @ApiModelProperty(value = "结束时间", example = "2019-08-19 23:59:59")
    private String endTimeStr;


    @ApiModelProperty(value = "当前页", example = "1", required = true)
    @NotNull(message = "当前页 不能为空")
    private Integer current;

    @ApiModelProperty(value = "每页条数", example = "10", required = true)
    @NotNull(message = "每页条数 不能为空")
    private Integer size;


}
